package com.xhwl.data.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xhwl.common.dto.cent.sdata.RoleDetailDTO;
import com.xhwl.common.pojo.cent.sdata.AccountRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description: 账户与角色
 * @author:
 * @create: 2020-11-25
 **/
@Repository
public interface IAccountRoleDao extends BaseMapper<AccountRole> {

    /**
     * 根据角色id分组 挂钩的账号的数量
     * @return
     */
    List<RoleDetailDTO> getCountByRoleId(@Param("roleIds") List<Integer> roleIds);



}
